package com.example.leetcode.string;

import com.example.leetcode.string.common.StringUtils;

class Solution58 {
    public int lengthOfLastWord(String s) {
        return StringUtils.lengthOfLastWord(s);
    }
}

public class leetcode58 {
    public static void main(String[] args) {
        Solution58 solution58 = new Solution58();
        System.out.println(solution58.lengthOfLastWord("   fly me   to   the moon  "));
        System.out.println(solution58.lengthOfLastWord("luffy is still joyboy"));
        System.out.println(solution58.lengthOfLastWord("Hello World"));
    }
}
